package com.digua.tank;

import java.io.IOException;
import java.util.Properties;

/**
 * @author wangdigua
 * @title
 * @date 2020/11/10 8:56 下午
 * @since 1.0.0
 */
public class PropertyMgr {

    static Properties props = new Properties();

    static {
        try {
            props.load(PropertyMgr.class.getClassLoader().getResourceAsStream("config"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String get(String key) {
        return props.getProperty(key);
    }

    public static void main(String[] args) {
        Object initTankCount = get("initTankCount");
        System.out.println(initTankCount);
    }


}
